{% extends 'index.html' %}
{% load logintags %}


{% block content %}
<div class="register">
            <div class="register_title">
                <h2>OpenAssembly | Beta <div id="location"></div></h2>
            </div>
                <div class="register_registration" style="text-align:center;">
                    <h3> Register a new account</h3>
                    <form method="post" action="">
                    {% pp_user_registration_form request=request %}
                            Username:<br>
                            {{ pp_login.form.name }}<br>
                            Password:<br>
                            {{ pp_login.form.password1 }}<br>
                            Check Password:<br>
                            {{ pp_login.form.password2 }}<br>
                            Email:<br>
                            {{ pp_login.form.email }}<br><br>
                            {{ pp_login.form.form_id}}
                            {% csrf_token %}
                          <input type="submit" class="button green" value="Register">
                        <div class="error">{{pp_login.errors}}<br>{{ pp_login.form.errors }}</div>
                        </form>
                    {% endpp_user_registration_form %}
                </div>
                <div class="register_login" style="text-align:center;">
                <h3> Login to existing account!</h3>
                    {% pp_user_login_form request=request  %}
                        <form method="post" action="">
                                Username: 
                                    <br> {{ pp_login.form.name }}<br>
                                Password:<br> {{ pp_login.form.password }}<br><a style="font-size:80%;" href="{% url django.contrib.auth.views.password_reset %}">Forgot your password?</a><br><br>
                                {{ pp_login.form.form_id}}
                                {% csrf_token %}
                            
                              <input type="submit" class="button green" value="Login">
                            <div class="error">{{pp_login.errors}}<br>{{ pp_login.form.errors }}</div>

                            </form>
                    {% endpp_user_login_form %}
                        
                </div>

            </div>

{% endblock %}